var msg1 = "您使用的浏览器需要更新了！";
var msg2 = "今年10岁的IE6浏览器已经无法更快的浏览网页，更好地保障安全，更好地支持新技术。为了能够给您提供最安全流畅的浏览经历我们建议您跟IE6挥手告别!";
var msg3 = "选择下面任意一款浏览器，点击图标访问官方主页立刻安装最新版本！（更新后您不会再见到此提醒）";
var br1 = "Firefox 20+";
var br2 = "Chrome 25+";
var br3 = "Safari 5+";
var br4 = "360 7+";
var url1 = "http://firefox.com.cn/";
var url2 = "http://www.google.cn/intl/zh-CN/chrome/browser/";
var url3 = "http://www.apple.com/cn/safari/";
var url4 = "http://chrome.360.cn/";

var imgPath;

function e(z) {
	imgPath = z;
	var x = document.getElementsByTagName("body")[0];
	var X = document.createElement("div");
	var P = document.createElement("div");
	var U = document.createElement("h1");
	var W = document.createElement("p");
	var V = document.createElement("p");
	var C = document.createElement("ul");
	var H = document.createElement("li");
	var E = document.createElement("li");
	var D = document.createElement("li");
	var B = document.createElement("li");
	var T = document.createElement("div");
	var S = document.createElement("div");
	var R = document.createElement("div");
	var Q = document.createElement("div");
	var N = document.createElement("div");
	var L = document.createElement("div");
	var K = document.createElement("div");
	var J = document.createElement("div");
	x.appendChild(P);
	x.appendChild(X);
	X.appendChild(U);
	X.appendChild(W);
	X.appendChild(V);
	X.appendChild(C);
	C.appendChild(H);
	C.appendChild(E);
	C.appendChild(D);
	C.appendChild(B);
	H.appendChild(T);
	E.appendChild(S);
	D.appendChild(R);
	B.appendChild(Q);
	H.appendChild(N);
	E.appendChild(L);
	D.appendChild(K);
	B.appendChild(J);
	X.setAttribute("id", "_d");
	P.setAttribute("id", "_l");
	U.setAttribute("id", "_h");
	W.setAttribute("id", "_p1");
	V.setAttribute("id", "_p2");
	C.setAttribute("id", "_ul");
	H.setAttribute("id", "_li1");
	E.setAttribute("id", "_li2");
	D.setAttribute("id", "_li3");
	B.setAttribute("id", "_li4");
	T.setAttribute("id", "_ico1");
	S.setAttribute("id", "_ico2");
	R.setAttribute("id", "_ico3");
	Q.setAttribute("id", "_ico4");
	N.setAttribute("id", "_lit1");
	L.setAttribute("id", "_lit2");
	K.setAttribute("id", "_lit3");
	J.setAttribute("id", "_lit4");
	var d = document.documentElement.clientWidth;
	var r = document.documentElement.clientHeight;
	var p = document.getElementById("_l");
	p.style.width = d + "px";
	p.style.height = r + "px";
	p.style.position = "fixed";
	p.style.top = "0px";
	p.style.left = "0px";
	p.style.filter = "alpha(opacity=80)";
	p.style.background = "#000";
	var s = document.getElementById("_d");
	_ddw = 650;
	_ddh = 260;
	s.style.width = _ddw + "px";
	s.style.height = _ddh + "px";
	s.style.position = "fixed";
	s.style.top = ((r - _ddh) / 2) + "px";
	s.style.left = ((d - _ddw) / 2) + "px";
	s.style.padding = "20px";
	s.style.background = "#fff";
	s.style.border = "1px solid #ccc";
	s.style.fontFamily = "'Lucida Grande','Lucida Sans Unicode',Arial,Verdana,sans-serif";
	s.style.listStyleType = "none";
	s.style.color = "#4F4F4F";
	s.style.fontSize = "12px";
	U.appendChild(document.createTextNode(msg1));
	var a = document.getElementById("_h");
	a.style.display = "block";
	a.style.fontSize = "1.3em";
	a.style.marginBottom = "0.5em";
	a.style.color = "#333";
	a.style.fontFamily = "Helvetica,Arial,sans-serif";
	a.style.fontWeight = "bold";
	W.appendChild(document.createTextNode(msg2));
	var aa = document.getElementById("_p1");
	aa.style.marginBottom = "1em";
	V.appendChild(document.createTextNode(msg3));
	var A = document.getElementById("_p2");
	A.style.marginBottom = "1em";
	var m = document.getElementById("_ul");
	m.style.listStyleImage = "none";
	m.style.listStylePosition = "outside";
	m.style.listStyleType = "none";
	m.style.margin = "0 px auto";
	m.style.padding = "0px";
	m.style.paddingLeft = "10px";
	var k = document.getElementById("_li1");
	var M = document.getElementById("_li2");
	var y = document.getElementById("_li3");
	var n = document.getElementById("_li4");
	var g = k.style;
	var Y = M.style;
	var O = y.style;
	var G = n.style;
	g.background = Y.background = O.background = G.background = "transparent url('" + imgPath + "background_browser.gif') no-repeat scroll left top";
	g.cursor = Y.cursor = O.cursor = G.cursor = "pointer";
	k.onclick = function() {
		window.location = url1
	};
	M.onclick = function() {
		window.location = url2
	};
	y.onclick = function() {
		window.location = url3
	};
	n.onclick = function() {
		window.location = url4
	};
	g.styleFloat = Y.styleFloat = O.styleFloat = G.styleFloat = "left";
	g.width = Y.width = O.width = G.width = "120px";
	g.height = Y.height = O.height = G.height = "122px";
	g.margin = Y.margin = O.margin = G.margin = "0 40px 10px 0";
	var c = document.getElementById("_ico1");
	var F = document.getElementById("_ico2");
	var v = document.getElementById("_ico3");
	var f = document.getElementById("_ico4");
	var u = c.style;
	var q = F.style;
	var l = v.style;
	var b = f.style;
	u.width = q.width = l.width = b.width = "100px";
	u.height = q.height = l.height = b.height = "100px";
	u.margin = q.margin = l.margin = b.margin = "1px auto";
	u.background = "transparent url('" + imgPath + "browser_firefox.gif') no-repeat scroll left top";
	q.background = "transparent url('" + imgPath + "browser_chrome.gif') no-repeat scroll left top";
	l.background = "transparent url('" + imgPath + "browser_safari.gif') no-repeat scroll left top";
	b.background = "transparent url('" + imgPath + "browser_360.gif') no-repeat scroll left top";
	N.appendChild(document.createTextNode(br1));
	L.appendChild(document.createTextNode(br2));
	K.appendChild(document.createTextNode(br3));
	J.appendChild(document.createTextNode(br4));
	var i = document.getElementById("_lit1");
	var I = document.getElementById("_lit2");
	var w = document.getElementById("_lit3");
	var j = document.getElementById("_lit4");
	var t = i.style;
	var o = I.style;
	var h = w.style;
	var Z = j.style;
	t.color = o.color = h.color = Z.color = "#808080";
	t.fontSize = o.fontSize = h.fontSize = Z.fontSize = "0.8em";
	t.height = o.height = h.height = Z.height = "18px";
	t.lineHeight = o.lineHeight = h.lineHeight = Z.lineHeight = "17px";
	t.margin = o.margin = h.margin = Z.margin = "1px auto";
	t.width = o.width = h.width = Z.width = "118px";
	t.textAlign = o.textAlign = h.textAlign = Z.textAlign = "center";
	x.onclick = function() {
		X.style.display = "none";
		P.style.display = "none"
	}
};